#ifndef _MT5_UI_MSGBOX_H_
#define _MT5_UI_MSGBOX_H_


#include "mat_ui_popupanimator.h"

namespace ui
{
	class UIWidget;
}

class MATUIMsgBox : public MATUIPopupAnimator
{
public:

	enum  OK_ACTION
	{
		ACTION_NONE,
		ACTION_NEWGAME,

		ACTION_C,
	};

	MATUIMsgBox();
	void					ShowExtra(float Delay, 
									  const std::string& Msg, 
									  OK_ACTION Action);	
	virtual void			Tick(float dt);
	virtual void			OnAnimatedUIFinish();


protected:

	void DELEGATE_CALL	OnButtonOK(ui::UIWidget::WIDGET_EVENT Event, ui::UIWidget* pWidget);

	ui::UIWidget*			m_pUIMsg;
	OK_ACTION				m_OkAction;
	float					m_Delay;
	float					m_Duration;

};

#endif